package com.bluetron.supos.apps.exceptions;

/**
 * APP的业务异常定义
 * 
 */
public enum AppError {
    /**
     * 未知错误
     */
    ERROR_UNKNOWN("000000", "未知错误"),
    /**
     * 测试错误
     */
    ERROR_TEST("000001", "测试错误"),
    ;

    /**
     * 错误码
     * 
     * @return
     */
    private String code;
    /**
     * 错误信息
     */
    private String message;

    AppError(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
